package com.xjj.servicejob.feign;

import com.xjj.entity.Klass;
import com.xjj.entity.ResponseEntity;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author sjy
 * @create 2022-10-25 17:03
 */
@FeignClient("manage")
public interface KlassFeignClient {
    @PutMapping("/manage/admin/klass/addJobNumById")
    public ResponseEntity addJobNumById(@RequestBody Klass klass);

    @GetMapping("/manage/admin/klass/getKlassById/{id}")
    public ResponseEntity getKlassById(@PathVariable("id") int id);

    @GetMapping("/manage/admin/klass/getKlassByManagerId/{id}")
    public ResponseEntity getKlassByManagerId(@PathVariable("id") int id);

    @GetMapping("/manage/admin/student/getStudentById/{id}")
    public ResponseEntity getStudentById(@PathVariable("id") int id);

    @GetMapping("/manage/admin/student/getAllStudentsByKlassId/{klassId}")
    public ResponseEntity getAllStudentsByKlassId(@PathVariable("klassId") int klassId);

    @GetMapping("/manage/admin/student//addSubmitNumById/{id}")
    public ResponseEntity addSubmitNumById(@PathVariable("id") int id);

    @GetMapping("/manage/admin/student/decreaseSubmitNumById/{id}")
    public ResponseEntity decreaseSubmitNumById(@PathVariable("id") int id);

    @GetMapping("/manage/admin/manager/getAllTeacherByKlassId/{klassId}")
    public ResponseEntity getAllTeacherByKlassId(@PathVariable("klassId") int klassId);

    @GetMapping("/manage/admin/manager/getManagerById/{id}")
    public ResponseEntity getManagerById(@PathVariable("id") int id);
}
